//
//  Product.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/22.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "Product.h"

@implementation Product
+ (instancetype)ProductWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}
- (instancetype)initWithDic:(NSDictionary *)dic

{
    if (self = [super init]) {
        self.productId = (int)dic[@"Id"];
        self.ProductName = dic[@"ProductName"];
        self.ProductKey = dic[@"ProductKey"];
        self.ProductImg = dic[@"ProductImg"];
        self.Price = (int)dic[@"Price"];
        self.Content = dic[@"Content"];
        self.Status = (int)dic[@"Status"];
    }
    return self;
}
@end
